package com.mtt.erp.file.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mtt.erp.common.exception.MttErpException;
import com.mtt.erp.file.domain.GoodsFileInfo;
import com.mtt.erp.file.dto.ImageDto;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Auther: SJZ    2907374717@qq.com
 * @Date: 2019/5/30 13:20
 * @Description:
 */
public interface GoodsFileInfoService extends IService<GoodsFileInfo> {

     Boolean uploadQCloud(MultipartFile file) throws MttErpException;

     Integer countFile(GoodsFileInfo goodsFileInfo);

     Boolean addGoodsFileInfo(GoodsFileInfo goodsFileInfo);

     List<ImageDto> findImageList(List<String> ids);

     List<ImageDto> findImageListByIkeyS(List<String> keys);

     Boolean deleteFile(String fileKey) throws MttErpException;
}
